<!-- 底部组件 src/components/BKFooter.vue -->
<script setup lang="ts"></script>
<template>
  <footer>
    <div class="left">
      <p class="acknow">Acknowledgment</p>
      <p class="site_info">
        <span><img src="@/assets/img/tencent.png" alt="" />腾讯云服务器</span>
        <span><img src="@/assets/img/tencent.png" alt="" />腾讯云SSL证书</span>
        <span><img src="@/assets/img/qiniu.png" alt="" />七牛云存储</span>
      </p>
      <p class="version">
        <span>version</span>
        <span>4.0.0</span>
      </p>
      <p>建站日期2022-6-23</p>
      <p class="beian">
        <a href="http://beian.miit.gov.cn/">
          <img src="@/assets/img/badges.png" alt="" />
          备案信息
        </a>
      </p>
    </div>
    <div class="right">
      <div class="contact">
        <div>
          <img class="svg" src="@/assets/img/qq_icon.svg" alt="" />
          <img class="qq" src="@/assets/img/qq.png" alt="" />
        </div>
        <div>
          <img class="svg" src="@/assets/img/wexin_icon.svg" alt="" />
          <img class="qq" src="@/assets/img/wechat.png" alt="" />
        </div>
        <div>
          <img class="svg" src="@/assets/img/weibo_icon.svg" alt="" />
          <img class="qq" src="@/assets/img/qq.png" alt="" />
        </div>
        <div>
          <img class="svg" src="@/assets/img/bilibili_icon.svg" alt="" />
          <img class="qq" src="@/assets/img/qq.png" alt="" />
        </div>
        <div>
          <img class="svg" src="@/assets/img/github_icon.svg" alt="" />
          <img class="qq" src="@/assets/img/qq.png" alt="" />
        </div>
        <div>
          <img class="svg" src="@/assets/img/gitee_icon.svg" alt="" />
          <img class="qq" src="@/assets/img/qq.png" alt="" />
        </div>
      </div>
      <p>联系邮箱:3396420549@qq.com</p>
    </div>
  </footer>
</template>
<style scoped lang="scss">
footer {
  display: flex;
  width: 100%;
  height: 180px;
  margin-top: 10px;
  background-color: var(--el-bg-color);
  font-size: 14px;
  .acknow {
    color: #26c6e1;
    font-size: 20px;
  }
  .site_info {
    display: flex;
    align-items: center;
    span {
      margin-right: 10px;
      display: flex;
      align-items: center;
    }
    img {
      width: 20px;
      margin-right: 5px;
    }
  }
  .version {
    display: flex;
    span {
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--el-bg-color-page);
      background-color: #333333;
      height: 30px;
      width: 60px;
      &:nth-child(1) {
        background-color: #ff9800;
        border-radius: 5px 0 0 5px;
      }
      &:nth-child(2) {
        background-color: #26c6da;
        border-radius: 0 5px 5px 0;
      }
    }
  }
  .beian {
    a {
      display: flex;
      align-items: center;
      color: var(--el-text-color-primary);
    }
  }
  p {
    margin-top: 10px;
    color: #26c6da;
  }
  .contact {
    display: flex;
    justify-content: space-between;
    & > div {
      position: relative;
      margin-left: 10px;
    }
    .qq {
      width: 80px;
      position: absolute;
      top: -30px;
      left: -14px;
      transition: all 0.4s;
      opacity: 0;
    }
  }
  .svg {
    width: 40px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    &:hover {
      & ~ .qq {
        top: -83px;
        left: -14px;
        opacity: 1;
      }
    }
  }
}
footer .left,
footer .right {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
</style>
